/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rmi;

import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

/**
 *
 * @author VANDH
 */
public class Server {

    public static void main(String[] args) throws RemoteException, AlreadyBoundException {

        int port = 2020;
        CentToInch cti = new CentToInch();
        Registry r = LocateRegistry.createRegistry(port);

        r.bind("abc", cti);
        System.out.println("Ready listen on " + port + "..");
    }
}
